import request from "../utils/request";

// 获取商品列表  manager/goods/goodsList
export const GoodsList=async (data)=>{
	return request.postRequest("manager/goods/goodsList",data)
}

//商品服务下拉   manager/service/serviceSelect
export const GoodServiceCase=async (data)=>{
	return request.postRequest("manager/service/serviceSelect",data)
}

//删除商品   manager/goods/deleteGoods
export const DeleteGoods=async (data)=>{
	return request.postRequest("manager/goods/deleteGoods",data)
}

//修改商品   manager/goods/updateGoods
export const UpdateGoods=async (data)=>{
	return request.postRequest("manager/goods/updateGoods",data)
}

//下架商品   manager/goods/unShelve
export const DownGoods=async (data)=>{
	return request.postRequest("manager/goods/unShelve",data)
}

//添加商品   manager/goods/insertGoods
export const InsertGoods=async (data)=>{
	return request.postRequest("manager/goods/insertGoods",data)
}

//商品详情   manager/goods/goodsInfo
export const GoodsDetail=async (data)=>{
	return request.postRequest("manager/goods/goodsInfo",data)
}




//获取商品分类列表  http://localhost:8091/manager/separate/separateList
export const GoodsClassList=async (data)=>{
	return request.postRequest("manager/separate/separateList",data)
}

//上级分类下拉  manager/separate/separateSuperior
export const CategoryParent =async ()=>{
	return request.postRequest("manager/separate/separateSuperior")
}

//删除商品分类   manager/separate/deleteSeparate
export const DelGoodsClass =async (data)=>{
	return request.postRequest("manager/separate/deleteSeparate",data)
}

//编辑商品分类  manager/separate/updateSeparate
export const UpdateGoodsClass =async (data)=>{
	return request.postRequest("manager/separate/updateSeparate",data)
}

//添加商品分类  manager/separate/insertSeparate
export const InsertGoodsClass =async (data)=>{
	return request.postRequest("manager/separate/insertSeparate",data)
}





//获取标签列表  http://localhost:8091/manager/tagField/tagFieldList
export const TagList=async (data)=>{
	return request.postRequest("manager/tagField/tagFieldList",data)
}

//编辑商品标签  manager/tagField/updateTagField
export const ReviseTag=async (data)=>{
	return request.postRequest("manager/tagField/updateTagField",data)
}
//删除商品标签  manager/tagField/deleteTagField
export const DelTag=async (data)=>{
	return request.postRequest("manager/tagField/deleteTagField",data)
}
//添加商品标签  manager/tagField/insertTagField
export const InsertTag=async (data)=>{
	return request.postRequest("manager/tagField/insertTagField",data)
}



//获取商品服务列表  manager/service/serviceList
export const GoodsServiceList=async (data)=>{
	return request.postRequest("manager/service/serviceList",data)
}
//编辑商品服务  manager/service/updateService
export const UpdateGoodsService=async (data)=>{
	return request.postRequest("manager/service/updateService",data)
}
//删除商品服务  manager/service/deleteService
export const DeleteGoodsService=async (data)=>{
	return request.postRequest("manager/service/deleteService",data)
}
//添加商品服务  manager/service/insertService
export const InsertGoodsService=async (data)=>{
	return request.postRequest("manager/service/insertService",data)
}


//商品品牌列表   manager/logo/logoList
export const BrandList=async (data)=>{
	return request.postRequest("manager/logo/logoList",data)
}

//添加商品品牌  manager/logo/insertLogo
export const InsertBrandList=async (data)=>{
	return request.postRequest("manager/logo/insertLogo",data)
}
//编辑商品品牌  manager/logo/updateLogo
export const UpdateBrandList=async (data)=>{
	return request.postRequest("manager/logo/updateLogo",data)
}
//删除商品品牌   manager/logo/deleteLogo
export const DelBrandList=async (data)=>{
	return request.postRequest("manager/logo/deleteLogo",data)
}





//回收站列表  manager/goods/recycleList
export const RecycleBinList=async (data)=>{
	return request.postRequest("manager/goods/recycleList",data)
}

//商品分类下拉   manager/separate/separateSelect
export const GoodClassCase=async (data)=>{
	return request.postRequest("manager/separate/separateSelect",data)
}


//恢复商品  manager/goods/restoreGoods
export const RestoreGoods=async (data)=>{
	return request.postRequest("manager/goods/restoreGoods",data)
}




//查询分类设置  manager/separateConf/separateConfInfo
export const QueryClassSet=async (data)=>{
	return request.postRequest("manager/separateConf/separateConfInfo",data)
}

//修改分类设置  manager/separateConf/updateSeparateConf
export const UpdateClassSet=async (data)=>{
	return request.postRequest("manager/separateConf/updateSeparateConf",data)
}